README FILE

The enclosed file replicates all analyses reported in
Timothy Hellwig and Tonya K. Dodez. forthcoming. "Choosing Challengers: Opposition Party Success in Hard Times." WORLD POLITICS.

DIRECTORY OF ALL FILES INCLUDED IN DATAVERSE
Place the below files in your working directory
All analyses performed with Stata v18

POLATdata_analysis.do = code for Table 2, Figure 1, Table A1, Table A2 and Figure A2

Spain_POLAT_panel.dta = data for Table 2, Figure 1, Table A1, Table A2 and Figure A2

nzesdata_analysis.do = code for Table 3, Figure 2, and Table A3 

nzes0217_analysis.dta = data for Table 3, Figure 2, and Table A3  

lissdata_analysis.do = code for Table 4, Figure 3, and Figure A3 

liss_panel.dta = data for Table 4, Figure 3, and Figure A3

MACRO_elections.do = code for Table 5, Figure 4, Table A4, Table A5, Table A6, Figure A4, Table A7, Table A8, and Table A9 

MACRO-econ-elections.dta = data for Table 5, Figure 4, Table A4, Table A5, Table A6, Figure A4, Table A7, Table A8, and Table A9 

election_rile.dta = data for Table A7, Table A8, and Table A9

competence.do = code for Table 6 and Figure 5

competence.dta = data for Table 6 and Figure 5